Databases must be carefully planned and designed to meet business goals. How they are designed enables or limits flexibility in use. Analyzing an organization’s data and identifying the relationships among the data is called data modeling. Data modeling should first be done to decide which data should be collected and how it should be organized.
Effective data modeling and design of each database involves the creation of a conceptual blueprint of the database. Such a blueprint is called an entity relationship diagram (ERD). An ERD is a graphical representation of all entity relationships and they are often consulted to determine a problem with a query or to implement changes. ERDs are a main tool for communication not only among professional DB designers, but also among users and between users and designers. Therefore it is important that professionals in all of these fields know how to create and read them.
In an ERD, boxes are used to identify entities. Lines are used to indicate a relationship between entities. When lines shaped like crow’s-feet are pointing to an object, there might be many instances of that object. When a link with a crow’s-foot also includes a crossbar, then all instances of the object on the side of the crow’s-foot are linked with a single instance of the object on the side of the crossbar. A second crossbar would denote “mandatory,” which means that the relationship must occur, such as between a book title and author: a book title must have an author with which it is associated. A circle close to the box denotes “optional.”